<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>设置capture属性</title>
		<script src="vue.js"></script>
	</head>

	<body>
		<div id="app">
			<div v-on:click.capture="doPer">
				<button v-on:click="toThis">事件捕捉</button>
			</div>
		</div>
	</body>
	<script>
		var vm = new Vue({
			el: "#app",
			methods: {
				doPer() {
					console.log("我是父类")
				},
				toThis() {
					console.log("我是子类")
				}
			},
		})
	</script>

</html>